'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	event.data.createTime = Date.now()
	event.data.subType = 'uniCloud'
	const collection = db.collection(event.t)
	const res = await collection.add(event.data)
	 return {
			status: 200,
			data:res,
			msg: `添加成功`
		} 
};
